package com.wiloon.java8x;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.IOException;
import java.io.InputStream;
import java.util.Objects;
import java.util.Properties;

/**
 * Created by wiloon on 6/14/15.
 */

public class PropertyX {
    private static Logger logger = LoggerFactory.getLogger(PropertyX.class);

    static{
        Properties properties = new Properties();
        InputStream is = Objects.class.getResourceAsStream("/javaeex.properties");
        try {
            properties.load(is);
            logger.debug(properties.getProperty("p0"));
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
